/*
 * _restart.java
 *
 * Created on 14 Март 2008 г., 13:11
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package xmppbot.funcs;

import java.sql.SQLException;
import org.jivesoftware.smack.XMPPException;
import xmppbot.parse.Exec;
import xmppbot.Main;
import xmppbot.parse.options;

/**
 *
 * @author lian
 */
public class _restart implements func {
    
    /** Creates a new instance of _restart */
    public _restart() {
    }

    
    public String process(options opts) {
        try {
            Main.restart(false);
        } catch (ClassNotFoundException ex) {
            ex.printStackTrace();
        } catch (XMPPException ex) {
            ex.printStackTrace();
        } catch (InterruptedException ex) {
            ex.printStackTrace();
        } catch (IllegalAccessException ex) {
            ex.printStackTrace();
        } catch (InstantiationException ex) {
            ex.printStackTrace();
        } catch (SQLException ex) {
            ex.printStackTrace();
        }
        return null;
    }

    
    public String processnotallowed(options opts) {
        return null;
    }
    
}
